<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<head>
    <meta charset="UTF-8">
    <title>Title123</title>
</head>
<body>

    请输入订单号:<input id="cd"  type="text">
    <input type="button"  id="bt" value="提交">



    <div id="qrcode"></div>

</body>
</html>
<script src="${pageContext.request.contextPath}/js/jquery.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/qrcode.min.js" type="text/javascript"></script>
<script>
        $(function () {

            $("#bt").click(function () {
                var cd=  $("#cd").val();
                $.ajax({
                    url:"createOrder/"+cd,
                    method:"get",
                    success:function (data) {
                        new QRCode(document.getElementById('qrcode'), data);
                    }
                });
            });



        });


</script>